﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Qadir.MVC.Streamline;

namespace QadirMVCStreamlineWinFormsSample
{
    [View("Form1")]
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        public void MakeView(IModel model, Dictionary<string,object> args)
        {
            InitializeComponent();
            if (args.ContainsKey("Title"))
                Text = args["Title"] as string;
            Show();
        }
    }
}
